﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class web_pages_ajax_san_ntd_moi : System.Web.UI.Page
{
    public string masan = "";
    public string mantv = "";
    public string mantd = "";
    public bool send = false;
    SanGDVL sanComm = new SanGDVL();
    Common comm = new Common();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["SanNTD"] != null)
            if ((bool)Session["SanNTD"] == true)
            {
                masan = Request.QueryString["masan"];
                mantv = Request.QueryString["mantv"];
                mantd = Request.QueryString["mantd"];
                loadTD();
                send = true;
            }
    }
    private void loadTD(){
       
        cbb_tuyendung.DataSource = comm.ExeceuteDataset("select * from ViecLamTrong_ho_so_tuyen_dung " +
            " where ma_ho_so in (select ma_ho_so_tuyen_dung from sangiaodich_doanh_nghiep where ma_doanh_nghiep = '"+mantd+"' and ma_san = '"+masan+"')");
        cbb_tuyendung.DataValueField = "ma_ho_so";
        cbb_tuyendung.DataTextField = "tieu_de_ho_so";
        cbb_tuyendung.DataBind();
    
    }    
}
